package com.duanjc.shiro.mapper;

import com.duanjc.shiro.entity.TRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author duanjiangcheng
 * @since 2022-11-29 03:58:52
 */
@Mapper
public interface TRoleMapper extends BaseMapper<TRole> {

    @Select("select * from t_role where id = #{id}")
    TRole getRoleById(@Param("id") Integer id);

}
